@extends('home.home')
@section('title',$title)
@section('content')
   <!--content-->
<div class=" container">
<div class=" register">
	<h1>注册账号</h1>
	   @if(session('info'))
	   	<p style="color: gold;">{session('info')}</p>
	   @endif
	    @if (count($errors) > 0)
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
        @endif
        <div style="position: relative;">
		  	  <form action="{{url('/home/index/insert')}}" method="post" name="myform-2"> 
		  	  {{csrf_field()}}
				 <div class="col-md-6 register-top-grid">
					<h3>个人信息</h3>
					 <div>
						<span>用户名</span>
						<input type="text" name="uname" value="{{old('uname')}}"> 
					 </div>
					 <div>
						<span>手机号</span>
						<input type="text" name="tel" value="{{old('tel')}}"> 
					 </div>
					 <div>
						 <span>安全邮箱&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;验证码</span>
						 <input type="text" name="ed" placeholder="邮箱验证码" value="" style="width:265px;margin-left: 276px;"> 
					 </div>
					 <div>
				
						 
					 </div>
					 <div>
						 <span>地址</span>
						 <input type="text" name="addr" value="{{old('addr')}}"> 
					 </div>
					   
					   <a class="news-letter" href="{{url('/admin/reset/forget')}}">
						 <label class="checkbox">忘记密码</label>
					   </a>
					 </div>
				     <div class="col-md-6 register-bottom-grid">
						    <h3>账号信息</h3>
							
							 <div>
								<span>用户密码</span>
								<input type="password" name="upwd" value="{{old('upwd')}}">
							 </div>
							 <div>
								<span>确认密码</span>
								<input type="password" name="pepwd">
							 </div>
							 <select name="" id="" selected="m" style="width: 100px;height: 45px;margin-top: 35px;margin-bottom:20px; ">
							 	<option value="m">男</option>
							 	<option value="w">女</option>
							 </select><br/>
							 <input type="submit" value="提交">
							
					 </div>
					 <div class="clearfix"> </div>
				</form>
				<div style="position: absolute;left: 15px;top: 264px;">
				<form id="sendForm" action="{{url('/home/index/email')}}" method="post">
                    {{csrf_field()}}     
                <input type="text" name="email" placeholder="忘记密码后可以用此邮箱找回" value="{{old('email')}}" style="width:265px;height: 50px;">   

                <span class="send" style="display: block;width: 50px;height: 50px; text-align: center;line-height: 50px;background: silver;position:absolute;left: 215px;top: 0px; ">
			    <a href="javascript:doSend()">发送</a>

			    </span>   
			   <!--  <input type="submit" value="发送"> -->
                </form>
                </div>
                </div>
			</div>
</div>
<script>
	        function doSend()
            {
                var sendForm = $('#sendForm');
                sendForm.attr('action',"{{url('/home/index/email')}}");
                sendForm.submit();
             }
</script>

<!--//content-->
@endsection